package com.ruoyi.back.service.impl;

import java.util.List;

import com.ruoyi.back.domain.OrdertTH;
import com.ruoyi.back.mapper.OrdertTHMapper;
import com.ruoyi.back.service.IOrdertTHService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 订单查询Service业务层处理
 *
 * @author ruoyi
 * @date 2022-09-24
 */
@Service
public class OrdertTHServiceImpl implements IOrdertTHService
{
    @Autowired
    private OrdertTHMapper ordertTHMapper;

    /**
     * 查询订单查询
     *
     * @param orderid 订单查询主键
     * @return 订单查询
     */
    @Override
    public OrdertTH selectOrdertTHByOrderid(Long orderid)
    {
        return ordertTHMapper.selectOrdertTHByOrderid(orderid);
    }

    /**
     * 查询订单查询列表
     *
     * @param ordertTH 订单查询
     * @return 订单查询
     */
    @Override
    public List<OrdertTH> selectOrdertTHList(OrdertTH ordertTH)
    {
        return ordertTHMapper.selectOrdertTHList(ordertTH);
    }

    /**
     * 新增订单查询
     *
     * @param ordertTH 订单查询
     * @return 结果
     */
    @Override
    public int insertOrdertTH(OrdertTH ordertTH)
    {
        return ordertTHMapper.insertOrdertTH(ordertTH);
    }

    /**
     * 修改订单查询
     *
     * @param ordertTH 订单查询
     * @return 结果
     */
    @Override
    public int updateOrdertTH(OrdertTH ordertTH)
    {
        return ordertTHMapper.updateOrdertTH(ordertTH);
    }

    /**
     * 批量删除订单查询
     *
     * @param orderids 需要删除的订单查询主键
     * @return 结果
     */
    @Override
    public int deleteOrdertTHByOrderids(Long[] orderids)
    {
        return ordertTHMapper.deleteOrdertTHByOrderids(orderids);
    }

    /**
     * 删除订单查询信息
     *
     * @param orderid 订单查询主键
     * @return 结果
     */
    @Override
    public int deleteOrdertTHByOrderid(Long orderid)
    {
        return ordertTHMapper.deleteOrdertTHByOrderid(orderid);
    }
}
